package com.itxiuyixiu.homework.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.itxiuyixiu.homework.entity.enums.Sex;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 黄磊
 * @date 2020/3/5
 */
public interface StudentVo {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    String getStudentId();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    String getAuthorities();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    String getStudentName();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    Sex getSex();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    LocalDate getBirthday();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    String getIdentityCard();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    String getStartYear();

    String getStudentClass();

    String getStudentContact();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    Integer getAcademyId();

    @JsonInclude(JsonInclude.Include.NON_NULL)
    Integer getMajorId();

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    LocalDateTime getGmtCreated();

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    LocalDateTime getGmtModified();
}
